import { defHttp } from '/@/utils/http/axios';

// import { getMenuListResultModel } from './model/menuModel';

enum Api {
  getById = '/shop/getById',
  insert = '/shop/insert',
  updateById = '/shop/updateById',
}

export const getById = (params: any) => {
  return defHttp.get({ url: Api.getById, params });
};

export const insert = (params: any) => {
  return defHttp.post({ url: Api.insert, params });
};

export const updateById = (params: any) => {
  return defHttp.put({ url: Api.updateById, params });
};
